package org.example.studentsystem_back.service;

import jakarta.servlet.http.HttpServletRequest;
import org.example.studentsystem_back.common.CommonResponse;
import org.example.studentsystem_back.domain.Freshmen;
import com.baomidou.mybatisplus.extension.service.IService;
import org.example.studentsystem_back.dto.PageDTO;
import org.example.studentsystem_back.vo.freshmenMangeVo.FreshmenVo;

import org.example.studentsystem_back.vo.userManageVo.PageFreshmanVo;
import org.springframework.stereotype.Service;

/**
* @author 朱嘉辉
* @description 针对表【freshmen】的数据库操作Service
* @createDate 2024-07-10 08:20:18
*/
@Service
public interface FreshmenService extends IService<Freshmen> {
    CommonResponse<PageFreshmanVo> getAllFreshmen(PageDTO pageDto);
    CommonResponse<FreshmenVo> getFreshmenByUserId(String userId);
    CommonResponse<FreshmenVo> updateFreshmenUserId(String userId, Freshmen freshmen);
    CommonResponse<FreshmenVo> deleteFreshmen(String userId);
    CommonResponse<FreshmenVo> getCurrentFreshmen(HttpServletRequest httpServletRequest);
}
